package cn.yunhe.mapper;

import cn.yunhe.bean.Product;
import cn.yunhe.bean.ProductExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ProductMapper {
    int countByExample(ProductExample example);

    int deleteByExample(ProductExample example);

    int deleteByPrimaryKey(Integer pid);

    int insert(Product record);

    int insertSelective(Product record);

    List<Product> selectByExample(ProductExample example);

    Product selectByPrimaryKey(Integer pid);

    int updateByExampleSelective(@Param("record") Product record, @Param("example") ProductExample example);

    int updateByExample(@Param("record") Product record, @Param("example") ProductExample example);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    int countProducyByCid( @Param("value")int cid);

    List<Product> findProductByCid(@Param("arg0") int id , @Param("arg1") int page ,@Param("arg2") int cont);

    List<Product> searchProduct(@Param("value") String val);

    int countProducyByCsid(@Param("value")int val);

    List<Product> findProductBycsid(@Param("arg0") int id , @Param("arg1") int page ,@Param("arg2") int cont);

    List<Product> findAllProduct(@Param("arg0") int id , @Param("arg1") int page);
}